BenSelect Documentation
Display or Exclude Questions per State
Send Feedback
JScript Examples > JScript for Questions > Display or Exclude Questions per State

Glossary Item Box

The following scripts display or exclude a question per state:

Display a question for a single state:
Event.Value = Event.EnrollmentState == 'CT';


Display a question for multiple states:

Event.Value = 'FL|MD|IN|KY|WI'.IndexOf(Event.EnrollmentState) >= 0;

-----------------------------------------------------------------------------------------------

Exclude a question for a single state:

Event.Value = Event.EnrollmentState != 'CT';

 

Exclude a question for multiple states:

Event.Value = 'FL|MD|IN|KY|WI'.IndexOf(Event.EnrollmentState) < 0;

 

©2024. All Rights Reserved.